﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Pout_Porri.Objects.Interface;
using Pout_Porri.Utils;


namespace Pout_Porri.Objects
{
    class Lake : Enemy
    {
        protected Animation lakeStand;
        

        public Lake(Texture2D image, Vector2 position, Vector2 velocity,
                    bool Yinverted, float Zorder) : base(image, position, velocity)
        {
            this.texture = image;
            this.zOrder = Zorder;
            if (Yinverted)
            {
                //disablePixelCollision = true;
                this.spriteEffects = SpriteEffects.FlipVertically;
            }
            else
                this.spriteEffects = SpriteEffects.None;
            disablePixelCollision = true;
        }

        public override void configAnimations()
        {
            //Animation marioStand = new Animation("stand", new Vector2(84, 84), 100, 0, 0, 1, Axis.X);
            lakeStand = new Animation("lakeStand", new Vector2(336,84), 100, 0, 4, 1, Axis.X);
            this.addAnimation(lakeStand);
            
            this.spriteTexture = new Texture2D(Game1.graphics.GraphicsDevice, 336, 84);
       
            this.setCurrentAnimation("lakeStand");
            currentState = EnemyStates.stand;
        }

        public override void update(GameTime gameTime)
        {

            if (currentState == EnemyStates.stand)
            {
                this.setCurrentAnimation("lakeStand");
                this.currentAnimationRect = this.AnimationRect(lakeStand);

            }

            base.update(gameTime);
        }
        
    }
}
